package org.fish.main;


import org.fish.client.DefaultClient;
import org.fish.service.Calculate;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class ClientTest {

	@SuppressWarnings("resource")
	public static void main(String args[]) throws Exception{
		ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("classpath:spring-fish-client.xml");
		DefaultClient defaultClient=context.getBean(DefaultClient.class);
		Calculate calculate=(Calculate)defaultClient.getService();
		System.out.println(calculate.add(1, 2));
	}

	
}
